<div class="draggable_title">
	<p><?php echo $this->title ?></p>
	<button id="close_draggable_intro" class="close_draggable_window">X</button>
</div>
<div class="draggable_text">
	<div id="fm-intro" ><?php echo $this->render('message.phtml');?></div>
	<form id="fm-form" action="<?php echo $this->pageInfo->getCurrentUrl() ?>/id/<?php echo $this->id ?>" method="POST">
		<fieldset>
		<legend> You can set the status of this blog. </legend>
		<p><label for="level" class="required">level</label>
			<input type="radio" name="level" value="<?php echo Object_Blog::BLOG_PRIVATE?>" >Private
			<input type="radio" name="level" value="<?php echo Object_Blog::BLOG_PUBLIC?>">Public
			<input type="radio" name="level" value="<?php echo Object_Blog::BLOG_STARRED?>">Starred
		</p>
		<p><label for="can_remark" class="required">Remark</label>
			<input type="radio" name="can_remark" value="<?php echo Object_Blog::BLOG_REMARK_OPEN?>">Open
			<input type="radio" name="can_remark" value="<?php echo Object_Blog::BLOG_REMARK_BAN?>">Close
		</p>
		<p style="margin-left: 130px;">
			<br/>
			<input name="sumit" id="sumit" value="Ok" class="button" type="submit">
			<input name="cancel" id="cancel" value="Cancel" class="button" type="button">
		</p>
		</fieldset>
	</form>
</div>
<script type="text/javascript">		
$(document).ready(function() {	
	$("#fm-form input[@type='submit']").click(function(){
		$("#fm-form").hide();		
		$.ajaxFormRequest('<?php echo empty($this->form_ajaxid)?'fm-intro':$this->form_ajaxid;?>',$("#fm-form").attr("action"),'fm-form');
	});		
	$("#fm-form").attr("onSubmit","return false");
	$("#fm-form input[@name='level'][@value='<?php echo $this->blog->level ?>']").attr("checked","checked");	
	$("#fm-form input[@name='can_remark'][@value='<?php echo $this->blog->can_remark ?>']").attr("checked","checked");	
	$("#close_draggable_intro,#cancel").click(function () {
		$("#draggable_intro").hide();		
		$.ajaxRequest("mainbody","<?php echo $this->baseUrl?>/admin/blog/list/c_id/<?php echo $this->category_id?>");
	});
});
</script>